<?php

namespace Medicina\BackendBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;

class ResolucionType extends AbstractType {


    public function buildForm(FormBuilder $builder, array $options) {
      
        $builder
                ->add('numero', 'text', array('attr' => array('class'=>'span12 resolucion','required' => true)))
                ->add('fecha', 'date', array(
                    'widget' => 'single_text',
                    'format' => 'dd/MM/yyyy',
                    'attr' => array('class' => 'span12 date dateObligatorio'),
                    'label' => "Fecha",
                    'required' => true
                ))
                ->add('observacion','textarea',array('attr'=>array('class'=>"span12 textarea-input"),'required' => false));
           
          }
    public function getDefaultOptions(array $options) {
        return array('data_class' => 'Medicina\KernelBundle\Entity\Resolucion',
            
            'oficina'=>null
       
            );
    }

    public function getName() {
        return 'ResolucionType';
    }

}
